#include <QCoreApplication>
#include <iostream>
#include <vector>
#include <set>
#include <string>
using namespace std;
class FillInTheMaze
{
    vector <string> filled(int R, int C, int X)
    {

    }
};

class MtGFight
{
public:
    vector <int> findGoodFight(vector <int> power, vector <int> toughness)
    {
        vector<int> ans;
        for(int i=0;i<power.size();i++)
        {
            for(int j=i+1;j<power.size();j++)
            {
                if(power[i]>=toughness[j]&&power[j]<toughness[i])
                {
                    ans.push_back(i);
                    ans.push_back(j);
                    return ans;
                }
                if(power[j]>toughness[i]&&power[i]<toughness[j])
                {
                    ans.push_back(j);
                    ans.push_back(i);
                    return ans;
                }

            }
        }
        return ans;
    }
};


int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    vector <int> power{4};
    vector <int> toughness{3};
    vector <int> ans;
    MtGFight test;
    ans=test.findGoodFight(power,toughness);
    for(vector<int>::iterator it=ans.begin();it!=ans.end();it++)
    cout<<*it<<" ";

    return a.exec();
}
